package top.zsyle.sycc.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import top.zsyle.sycc.doc.CourseDoc;
import top.zsyle.sycc.fallback.EsCourseServiceFallbackFactory;
import top.zsyle.sycc.result.JsonResult;

@FeignClient(value = "service-es",path = "esCourse",contextId = "esCourseService",fallbackFactory = EsCourseServiceFallbackFactory.class )
public interface EsCourseService {

    @RequestMapping(value="/save",method= RequestMethod.POST)
    JsonResult save(@RequestBody CourseDoc courseDoc);
}
